package com.fractalist.adTest;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.fractalist.android.ads.AdView;

public class adFractalistTest extends Activity {
	
	public static adFractalistTest ins;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	ins = this;
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        AdView ad = (AdView)this.findViewById(R.id.ad); 
      
		ad.setFadeImage(true);
		ad.setBackgroundColor(0xFFFFFF);
		ad.setFreshInterval(30);
		ad.setShowCloseButton(true);

        AdViewHandler handler = new AdViewHandler();
        ad.setStateHander(handler);
        
        Button asdf = (Button)findViewById(R.id.asdf);

        asdf.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent =new Intent();
				intent.setClass(adFractalistTest.this, aaa.class);
				startActivity(intent);
				adFractalistTest.this.finish();
			}
        	
        });

    }
}